<?php
namespace app\api\controller;
use app\model\ArticleModel;
use support\Request;
use think\facade\Db;
class IndexController extends Base
{
    public function index(Request $request)
    {
        $data=$request->all();
		s($data);
    }
    //获取资讯详情
    public function getArcOne(Request $request)
    {
        $id=$request->post('id',0);
        $data=ArticleModel::where('id',$id)->find();
        s($data);
    }

}
